#include<stdio.h>
int remainder[101],quotient[101];
int main()
{
    int m,n,i,j;
    printf("Please input a fraction(m/n)(<0<m<n<=100):");
    scanf("%d/%d",&m,&n);
    printf("%d/%d it's accuracy value is:0.",m,n);
    for(i=1;i<=100;i++)
    {
        remainder[m]=i;
        m*=10;
        quotient[i]=m/n;
        m=m%n;
        if(m==0)
        {
            for(j=1;j<=i;j++) printf("%d",quotient[j]);
            break;
        }
        if(remainder[m]!=0)
        {
            for(j=1;j<=i;j++) printf("%d",quotient[j]);
            printf("\n\tand it is a infinite cyclic fraction fron %d\n",remainder[m]);
            printf("\tdigit to %d digit after decimal point.\n",i);
            break;
        }
    }
}